* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

#root {
  min-height: 100vh;
}

.app-layout {
  min-height: 100vh;
}

.site-layout-content {
  padding: 24px;
  background: #fff;
  min-height: 280px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 卡片样式 */
.stat-card {
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(24, 144, 255, 0.3);
}

/* 表格样式 */
.data-table .ant-table {
  font-size: 14px;
}

.data-table .ant-table-thead > tr > th {
  background-color: #fafafa;
  font-weight: 600;
}

/* 图表容器 */
.chart-container {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.chart-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(24, 144, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* 响应式 */
@media (max-width: 768px) {
  .site-layout-content {
    padding: 12px;
  }
  
  /* 移动端表格优化 */
  .ant-table {
    font-size: 12px;
  }
  
  .ant-table-thead > tr > th {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .ant-table-tbody > tr > td {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  /* 移动端卡片优化 */
  .ant-card {
    border-radius: 8px;
  }
  
  .ant-card-head {
    padding: 12px 16px;
    min-height: 48px;
  }
  
  .ant-card-head-title {
    font-size: 14px;
  }
  
  .ant-card-body {
    padding: 12px;
  }
  
  /* 移动端Modal优化 */
  .ant-modal {
    margin: 0;
    max-width: 100%;
  }
  
  .ant-modal-content {
    border-radius: 8px;
  }
  
  /* 移动端统计数字优化 */
  .ant-statistic-title {
    font-size: 12px;
  }
  
  .ant-statistic-content {
    font-size: 20px;
  }
  
  /* 移动端按钮优化 */
  .ant-btn {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
  
  /* 移动端输入框优化 */
  .ant-input,
  .ant-select-selector {
    height: 32px;
    font-size: 13px;
  }
}

